import { defineStore } from 'pinia'
// import { getConfig } from '~/api/config'

export const useConfigStore = defineStore(
  'config',
  () => {
    // 是否显示搜索
    const searchStatus = ref<boolean>(false)
    // 是否显示广告
    const adviceStatus = ref<boolean>(false)

    function setSearchStatus(val: boolean) {
      searchStatus.value = val
    }

    return {
      searchStatus,
      setSearchStatus,
    }
  },
)
